package com.cmz.common.exception;

import com.cmz.common.api.enums.ErrorCodeEnum;

/**
 * 服务运行时异常
 * @author cmz
 */
public class ServiceRuntimeException extends RuntimeException {

    public ServiceRuntimeException(ErrorCodeEnum code) {
        super(code.getMessage());
    }

    public ServiceRuntimeException(ErrorCodeEnum message, Throwable cause) {
        super(message.getMessage(), cause);
    }

}
